<%--
  Created by IntelliJ IDEA.
  User: dell
  Date: 9/29/12
  Time: 12:41 AM
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head><title>Update Password</title></head>
<body>Update Password
<%
String errorMessage = (String) request.getAttribute("ERROR_MESSAGE");
%>
<table>
    <form action="changePassword.do" method="post">
        <tr>
            <td>Current Password:</td>
            <td><input type="password" name="currentPassword"  maxlength="20"/></td>
        </tr>
        <tr>
            <td>New Password</td>
            <td><input type="password" name="password1"  maxlength="20"/></td>
        </tr>
        <tr>
            <td>Repeat Password</td>
            <td><input type="password" name="password2"  maxlength="20"/></td>
        </tr>
         <tr>
            <td colspan="2">
                <% if(errorMessage != null){ %>
                <%=errorMessage%>
                <% } %>
            </td>
        </tr>
        <tr>
            <td><input type="submit" value="Change Password"  maxlength="20"/></td>
            <td> <a href="viewHome.do">Home</a></td>
        </tr>

    </form>


</table>


</body>
</html>